#include <iostream>
using namespace std;

int main()
{   // declare variables
	int row;
	int column;
	
	for (int row = 0; row < 5; row++) // B
	{
		for (int column = 0; column < 5; column++)
		{
			if( row == 0 || row == 4 || column == 0 || column == 4 || row == 2)
			{
				if ( row != column){
					cout << 'B';
						}
			}
			else
			{
				cout << " ";
			}
	}
	cout << endl;
}
cout << endl;
 for (int row = 0; row < 5; row++) // E
	{
		for (int column = 0; column < 5; column++)
		{
			if( row == 0 || row == 4 || column == 0 || row == 2)
			{
				if ( row != column){
					cout << 'E';
						}
			}
			else
			{
				cout << " ";
			}
	}
	cout << endl;
}
cout << endl;
for (int row = 0; row < 5; row++) // E
	{
		for (int column = 0; column < 5; column++)
		{
			if( row == 0 || row == 4 || column == 0 || row == 2)
			{
				if ( row != column){
					cout << 'E';
						}
			}
			else
			{
				cout << " ";
			}
	}
	cout << endl;

}
}





   
	
